<h1>{t}Websites{/t}</h1>
<div id="moduleTabs">
     <ul>
         <li><a href=""><span>{t}Websites list{/t}</span></a></li>
     </ul>
</div>
<table class="listTable">
	<tr>
		<th>{t}Id{/t}</th>
		<th>{t}Websites{/t}</th>
		<th>{t}Authors{/t}</th>
		<th>{t}Creation date{/t}</th>
		<th>{t}URL{/t}</th>
		{hasRight rule="website_Translation"}<th>{t}Actions{/t}</th>{/hasRight}
	</tr>
{foreach from=$websites item=website}
    {hasDocRight document=$website module="website" rule="read"}
	<tr class="lineUp">
		<td>{$website->getUniqueId()}</td>
		<td>{icon name="website.png" title=""} <strong>{$website->getLang()}</strong> - <a href="{$URL_RELATIVE}/bo/#{$website->getEditUrl($website->getVO())}" onclick="slideMenuToUp('/bo/#{$website->getEditUrl($website->getVO())}');return false;">{$website->getLabel()}</a></td>
		<td>{$website->getAuthor()}</td>
		<td>{date date=$website->getCreationdate()}</td>
		<td>http://{$website->getUrl()}</td>
		{hasRight rule="website_Translation"}<td><a href="{$URL_RELATIVE}/bo/#/website/translate/{$website->getUniqueId()}" class="nyroModal nodecoration"><span class="toolTip" title="{t}Add language - Click here to add a new language to the website{/t} {$website->getLabel()}.">{icon name="message_add.png" title="&nbsp;"}</a></span></td>{/hasRight}
	</tr>
	{/hasDocRight}
	{foreach from=$website->getTranslatedWebsites() item=translatedWebsite}
        {hasDocRight document=$translatedWebsite module="website" rule="read"}
		<tr class="noLine">
			<td></td>
			<td>{icon name="menu_up.png"} <strong>{$translatedWebsite->getLang()}</strong> - <a href="{$URL_RELATIVE}/bo/#{$translatedWebsite->getEditUrl($translatedWebsite->getLang())}" onclick="slideMenuToUp('/bo/#{$translatedWebsite->getEditUrl($translatedWebsite->getLang())}');return false;">{$translatedWebsite->getLabel()}</a></td>
			<td>{$translatedWebsite->getAuthor()}</td>
			<td>{date date=$translatedWebsite->getCreationdate()}</td>
			<td>http://{$translatedWebsite->getUrl()}</td>
			{hasRight rule="website_Translation"}<td></td>{/hasRight}
		</tr>
        {/hasDocRight}
	{/foreach}
{/foreach}
</table>